package com.offcn.sellergoods.feign;

import com.offcn.entity.Result;
import com.offcn.sellergoods.entity.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/****
 * @Author:ujiuye
 * @Description:
 * @Date 2021/2/1 14:19
 *****/
@FeignClient(value="DYM-SELLERGOODS")
@RequestMapping("/goods")
public interface GoodsFeign {
    @GetMapping("/{id}")
    public Result<GoodsEntity> findById(@PathVariable("id") Long id);
}